package com.gxa.mapper;

import com.gxa.entity.DistrictSysNotice;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface NoticeMapper {
    //分页查询所有公告
    List<DistrictSysNotice> findNoticeList();
    //按条件分页查询
    List<DistrictSysNotice> selectByTitle(@Param("notice_title") String noticeTitle,@Param("create_people")String createPeople,@Param("create_date")Date createDate,@Param("status")int status);
    //新增
    int addNotice(DistrictSysNotice districtSysNotice);
    //修改
    int updateNotice(DistrictSysNotice districtSysNotice);
    //删除
    int delNotice(int noticeId);
    //查看详情
    List<DistrictSysNotice> detailsNotice(int noticeId);
    //发布
    int releaseNotice(int noticeId,Date releaseDate);
    //撤回
    int withdrawNotice(int noticeId);
}
